//package com.example.myapplication.FlutterDemo;
//
//import androidx.appcompat.app.AppCompatActivity;
//import androidx.fragment.app.Fragment;
//import androidx.fragment.app.FragmentTransaction;
//
//import android.os.Bundle;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.EditText;
//import android.widget.FrameLayout;
//
//import com.example.myapplication.R;
//
//import io.flutter.embedding.android.FlutterActivity;
//import io.flutter.embedding.android.FlutterView;
//
//public class FlutterDemoActivity extends AppCompatActivity {
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
////        String initParams = getIntent().getStringExtra(INIT_PRAMS);
////        FlutterView flutterView = Flutter.createView(this,getLifecycle(),initParams);
////        FrameLayout.LayoutParams layout = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup);
////        setContentView(flutterView,layout);
//        setContentView(R.layout.activity_flutter_demo);
//        EditText paramInput = findViewById(R.id.paramInput);
//
//        findViewById(R.id.flutter_button_goto).setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
////                FragmentTransaction tx = getSupportFragmentManager().beginTransaction();
////                tx.replace(R.id.someContainer,Flutter.createFragment("{name:devio,dateList:[123,321]}"));
////                tx.commit();
//                String inputParams = paramInput.getText().toString().trim();
//                FlutterAppActivity.start(FlutterDemoActivity.this,inputParams);
//
//
//            }
//        });
//    }
//
//
//    public void JumpFlutter(View view) {
//        startActivity(
//                FlutterActivity
//                        .withNewEngine()
//                        .initialRoute("/defaultRouteName")
//                        .build(getApplicationContext())
//                );
//    }
//}